package com.lei.Proxy.statics;

/**
 * @author: leiGer
 * @Date: 2021/01/14
 * @Time: 23:16
 */
//顾客
public class Client {
    public static void main(String[] args) {
        System.out.println("*******测试手机模型********");
        Saler saler = new Saler();
        Phone phone = saler.chossePhone("华为","111","红");
        phone.call();
        System.out.println("******购买手机**********");
        phone = saler.buyPhone("小米", "22", "黑");
        phone.call();
        System.out.println("********购买无货手机********");
        phone = saler.buyPhone("苹果","333","绿");
    }
}
